<!DOCTYPE html>
<html lang="zh-CN">
 <head> 
  <meta charset="utf-8" /> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ --> 
  <meta name="description" content="" /> 
  <meta name="author" content="" /> 
  <link rel="icon" href="./img/asset-favicon.ico" /> 
  <title>社交-我的档案</title> 
  <!-- 页面 css js --> 
  <!--<script type="text/javascript" src="./plugins/sui/sui.min.js"></script>-->
  <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css" /> 
  <link rel="stylesheet" type="text/css" href="./css/widget-base.css" /> 
  <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css" /> 
  <link rel="stylesheet" type="text/css" href="./css/page-sj-person-myfile.css" />
    <script type="text/javascript" src="js/vue-2.5.16.js"></script>
  <script type="text/javascript" src="js/host.js"></script>
<script type="text/javascript" src="js/axios-0.18.0.min.js"></script>
  <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
 </head> 
 <body>
 <div id="app">
  <div class="wrapper"> 
   <!--引用组件--> 
   <!--头部导航--> 
   <header> 
    <div class="sui-navbar"> 
     <div class="navbar-inner"> 
      <a href="index-logined.html" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交" /></a> 
      <ul class="sui-nav"> 
       <li class="active"><a href="./headline-logined.html">头条</a></li> 
       <li><a href="./qa-logined.html">问答</a></li> 
       <li><a href="./activity-index.html">活动</a></li>
       <li><a href="./makeFriends-index.html">交友</a></li> 
       <li><a href="./spit-index.html">吐槽</a></li> 
       <li><a href="./recruit-index.html">招聘</a></li> 
      </ul> 
      <form class="sui-form sui-form pull-left"> 
       <input type="text" placeholder="输入关键词..." /> 
       <span class="btn-search fa fa-search"></span> 
      </form> 
      <div class="sui-nav pull-right info"> 
       <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li> 
       <li class="hover"> <span class="fa fa-plus "></span> 
        <ul class="hoverinfo"> 
         <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a href="./headline-submit.html">去分享</a></li> 
         <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html" target="_blank">提问题</a></li> 
         <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html" target="_blank">去吐槽</a></li> 
         <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a href="./makeFriends-submit.html" target="_blank">发约会</a></li> 
        </ul> </li> 
       <li><a href="./person-homepage.html" target="_blank" class="homego"><img src="./img/widget-photo.png" alt="用户头像" /></a></li> 
      </div> 
     </div> 
    </div> 
   </header> 
  </div> 
  <div class="myhome-personinfo" style="background-color:#AEDD81"> 
   <div class="wrapper"> 
    <div class="person-baseinfo"> 
     <!--头像信息--> 
     <div class="photo"> 
      <img src="./img/widget-myphoto.jpg" alt="" class="person" /> 
      <div class="share"> 
       <span><img src="./img/asset-QQ.png" alt="" width="34" height="28" /></span> 
       <span><img src="./img/asset-weixin.png" alt="" width="28" height="28" /></span> 
       <span><img src="./img/asset-weibo.png" alt="" width="28" height="28" /></span> 
      </div> 
     </div> 
     <!--文字信息--> 
     <div class="info"> 
      <h1>{{file.username}}<span class="allinfo"><a href="./person-myfile.html" target="_blank">查看完整档案</a></span></h1>
      <ul class="fill"> 
       <li> <i class="fa fa-map-marker" aria-hidden="true"></i> <span class="edit-item" v-if="addresses.length!=0">{{file.addresses[0].name|str_split}}</span><span class="edit-item" v-else="">请填写所在城市</span>
        <form action="" class="sui-form form-inline">
         <input type="text" placeholder="现居城市"/>
         <button class="sui-btn btn-danger save-btn">保存</button> 
        </form> </li> 
       <li> <i class="fa fa-graduation-cap" aria-hidden="true"></i> <span class="edit-item"> 填写毕业院校</span> 
        <form action="" class="sui-form form-inline"> 
         <input type="text" placeholder="院校名称" /> 
         <input type="text" placeholder="所学专业" /> 
         <button class="sui-btn btn-danger save-btn">保存</button> 
        </form> </li> 
       <li> <i class="fa fa-shopping-bag" aria-hidden="true"></i> <span class="edit-item"> 填写所在公司/组织</span> 
        <form action="" class="sui-form form-inline"> 
         <input type="text" placeholder="公司/组织名称" /> 
         <input type="text" placeholder="职位头衔" /> 
         <button class="sui-btn btn-danger save-btn">保存</button> 
        </form> </li> 
       <li> <i class="fa fa-link" aria-hidden="true"></i> <span class="edit-item"> 填写个人网站</span> 
        <form action="" class="sui-form form-inline"> 
         <input type="text" :placeholder="file.personal_site" />
         <button class="sui-btn btn-danger save-btn">保存</button> 
        </form> </li> 
      </ul> 
     </div> 
    </div> 
    <!--右侧编辑--> 
    <div class="edit-info" @click="addShortDescription">
     <h4>个人简介<span class="addedit"><img src="./img/widget-edit.png" width="12" height="12"/>编辑</span></h4>
     <div class="info-box">
      <div class="edit-intro">
        <form action="" class="sui-form form-inline">
          <div v-show="show_description_form" style="display: block">

          <div>
           <textarea class='editarea' type='text' :placeholder="file.short_description"></textarea>
          </div>

           <div class='btns'><button class='sui-btn btn-default btn-cancel'>取消</button><button class='sui-btn btn-info btn-save' @click="saveDescription">保存</button></div>
          </div>
        </form>

         <div v-show="show_description">
          <textarea class='editarea' type='text' :placeholder="file.short_description"></textarea>
         </div>

     </div>
      </div>
    </div>
    <div class="clearfix"></div> 
   </div> 
  </div>
  <!--两列布局--> 
  <div class="wrapper  myhome"> 
   <div class="sui-layout layout3"> 
    <div class="sidebar"> 
     <div class="myhome-list"> 
      <ul class="home-list"> 
       <li class="active"><a href="./person-homepage.html">我的主页</a></li> 
       <li><a href="./person-myanswer.html">我的回答</a></li> 
       <li><a href="./person-myquestion.html">我的提问</a></li> 
       <li><a href="./person-myshare.html">我的分享</a></li> 
      </ul> 
      <ul class="home-list bottom"> 
       <li><a href="./person-dynamic.html">个人动态</a></li> 
       <li><a href="./person-myfocus.html">我的关注</a></li> 
       <li><a href="./person-mycollect.html">我的收藏</a></li> 
       <li><a href="./person-myreaded.html">浏览记录</a></li> 
       <li><a href="./person-account.html">账户设置</a></li> 
      </ul> 
     </div>
    </div> 
    <div class="content"> 
     <div class="file-edit"> 
      <div class="info"> 
       <h3 class="tit"><span>个人档案</span></h3> 
       <!-- 个人信息 --> 
       <div class="sui-row-fluid person canadd">
        <div v-show="show_info">
        <div class="span4 item"> 
         <h3 class="name">真人头像</h3> 
         <img v-if="file.head_protrait" :src="file.head_protrait" alt="" />
         <img src="./img/widget-o-photo.png" alt="" />
        </div>
        <div class="span4 item"> 
         <h3 class="name">真人姓名</h3> 
         <p>{{file.real_name}}</p>
         <h3 class="name">出生日期</h3> 
         <p>{{file.birth_date}}</p>
         <h3 class="name">手机号码</h3> 
         <p>{{file.mobile}}</p>
         <h3 class="name">现居城市</h3> 
         <p v-if="addresses.length!=0">{{file.addresses[0].name|str_split}}</p>
         <p v-else="">暂无</p>
        </div>
        <div class="span3 item"> 
         <h3 class="name">性别</h3> 
         <p>{{file.gender}}</p>
         <h3 class="name">个人网站</h3> 
         <p>{{file.personal_site}}</p>
         <h3 class="name">Email</h3>
         <p v-if="file.email">{{file.email}}</p>
         <p v-else="">暂无</p>
         <h3 class="name">通讯地址</h3>
         <p v-if="addresses.length!=0">{{file.addresses[0].name}}</p>
         <p v-else="">暂无</p>
        </div>

        </div>

        <div class="span1 edit" @click="editPersonalInfo" v-show="show_info">
         <span class="gray"><i class="fa fa-pencil" aria-hidden="true"></i> 编辑</span>
        </div> 
        <div style="clear:both"></div> 
        <!-- info form --> 
        <div class="form-show" v-show="show_info_form" style="display: block">
         <div class="photo"> 
          <img :src="file.head_portrait" alt="" />
          <div class="text"> 
           <button class="sui-btn btn-default">上传真人头像</button> 
           <p>支持 jpg/jpeg/png 格式，大小不要超过 2MB</p> 
          </div> 
         </div> 
         <form action="" class="sui-form"> 
          <div class="sui-row-fluid"> 
           <div class="span6"> 
            <div class="control-group"> 
             <label class="control-label">登录姓名</label>
             <div class="controls"> 
              <input type="text" id="name" class="input-large" :placeholder="file.real_name" name="name" />
             </div> 
            </div> 
            <div class="control-group"> 
             <label class="control-label">出生日期</label>
             <div class="controls"> 
              <input type="text" id="birthday" class="input-large" :placeholder="file.birth_date" name="birthday" />
             </div> 
            </div> 
            <div class="control-group"> 
             <label class="control-label">手机号码</label>
             <div class="controls"> 
              <input type="text" id="telphone" class="input-large" :placeholder="file.mobile" name="telphone" />
             </div> 
            </div> 
            <div class="control-group"> 
             <label class="control-label">现居城市</label>
             <div class="controls"> 
              <input type="text" id="city" class="input-large" placeholder="当前现居城市" name="city" />
             </div> 
            </div> 
           </div> 
           <div class="span6"> 
            <div class="control-group" style="height: 60px;"> 
             <label class="control-label">性别</label>
             <div class="controls"> 
              <label data-toggle="radio" class="radio-pretty inline checked"> <input type="radio" checked="checked" name="qudao" /><span>男</span> </label>
              <!--<label data-toggle="radio" class="radio-pretty inline"> <input type="radio" name="qudao" /><span>男</span> </label>-->
              <label data-toggle="radio" class="radio-pretty inline"> <input type="radio" name="qudao" value="女"/><span>女</span> </label>
             </div> 
            </div> 
            <div class="control-group"> 
             <label class="control-label">个人网站</label>
             <div class="controls"> 
              <input type="text" id="net" class="input-large" :placeholder="file.personal_site" name="net" />
             </div> 
            </div> 
            <div class="control-group"> 
             <label class="control-label">Email</label>
             <div class="controls"> 
              <input type="text" id="email" class="input-large" :placeholder="file.email" name="email" />
             </div> 
            </div> 
            <div class="control-group"> 
             <label class="control-label">通讯地址</label>
             <div class="controls"> 
              <input type="text" id="city" class="input-large" placeholder="当前通讯地址" name="city" />
             </div> 
            </div> 
            <div class="control-group btns"> 
             <button class="sui-btn btn-cancel">取消</button> 
             <button class="sui-btn btn-save">保存</button> 
            </div> 
           </div> 
          </div> 
         </form> 
        </div> 
       </div> 
       <!-- 技术 --> 
       <div class="skill canadd" @click="modifySkill"><div v-show="show_skills">
        <h3> <span class="name">擅长技术</span> <span class="gray edit">
         <i class="fa fa-pencil" aria-hidden="true"></i> 编辑</span> </h3>
        <ul class="tag"> 
         <li v-for="work in file.works">{{work.skills}}</li>
         <li v-for="education in file.educations">{{education.skills}}</li>
        </ul>
        </div>
        <!-- skill form -->
        <form action="" class="sui-form form-show form-skill" v-show="show_skill_form" style="display: block">
         <div class="tags-area" >
          <div class="input-tags"> 
           <input type="text" v-model="tags" placeholder="标签，如:php可使用逗号，分号； 来分隔" class="input-xfat input-xxlarge" id="tags" />
          </div>
          <!--TODO-->
          <div class="tags-box" style="display: block">
           <ul class="sui-tag tag-bordered"> 
           <li v-for="(work,index) in file.works" @click="">{{work.skills}}</li>
           <li v-for="education in file.educations">{{education.skills}}</li>
           </ul> 
          </div> 
         </div> 
         <div class="clearfix"></div> 
         <div class="control-group btns"> 
          <button class="sui-btn btn-cancel">取消</button>
          <button class="sui-btn btn-save" @click="add_tags">保存</button>
         </div> 
        </form> 
       </div>
      </div> 
      <!-- 工作 --> 
      <div class="canadd"> 
       <h3 class="tit"><span>工作经历</span></h3> 
       <div class="add-list" @click="addWorkExperience" v-show="show_work">
        <li v-for="work in file.works"> <h3> <span class="add-name" >{{work.experience_address.name}}-{{work.experience_content}}</span> <span class="gray edit"><i class="fa fa-pencil" aria-hidden="true"></i> 编辑</span> </h3> <span class="date">{{work.start_time}} - {{work.end_time}}</span> </li>
        <p class="add"><a href="javascript:;">添加工作经历</a></p>
       </div> 
       <!-- work form --> 
       <div class="form-show" v-show="show_work_form" style="display: block">
        <form action="" class="sui-form"> 
         <div class="sui-row-fluid"> 
          <div class="span6"> 
           <div class="control-group"> 
            <label class="control-label">公司/组织名称</label>
            <div class="controls"> 
             <input type="text" id="company" class="input-large" placeholder="公司/组织名称" name="company" />
            </div> 
           </div> 
           <div class="control-group input-daterange" data-toggle="datepicker"> 
            <label class="control-label">起止时间</label>
            <div class="controls date"> 
             <input type="text" class="input-medium input-date" value="2016-01-01" />
             <span>-</span> 
             <input type="text" class="input-medium input-date" /> 
            </div> 
           </div> 
          </div> 
          <div class="span6"> 
           <div class="control-group"> 
            <label class="control-label">职位头衔</label>
            <div class="controls"> 
             <input type="text" id="job" class="input-large" placeholder="如：Java工程师" name="job" /> 
            </div> 
           </div> 
           <div class="control-group"> 
            <label class="control-label">工作城市</label>
            <div class="controls"> 
             <input type="text" id="work-city" class="input-large" placeholder="如：上海" name="work-city" /> 
            </div> 
           </div>
          </div>
          <div class="control-group"> 
           <label class="control-label">相关技术</label>
           <div class="controls"> 
            <input type="text" placeholder="标签，如:php可使用逗号，分号； 来分隔" class="input-xfat input-xxlarge" id="tags" /> 
           </div> 
          </div> 
          <div class="control-group"> 
           <label class="control-label">职位描述</label>
           <div class="controls"> 
            <textarea rows="3" class="input-block-level" placeholder="在职期间做了什么工作，解决了什么问题，做了什么贡献？"></textarea> 
           </div> 
          </div> 
          <div class="control-group btns"> 
           <button class="sui-btn btn-cancel">取消</button> 
           <button class="sui-btn btn-save">保存</button> 
          </div> 
         </div> 
        </form> 
       </div> 
      </div> 
      <!-- 教育 --> 
      <div class="canadd"> 
       <h3 class="tit"><span>教育经历</span></h3>
       <div class="add-list" @click="addEducationExperience" v-show="is_show">
        <li  v-if="file.educations.length!=0" v-for="education in file.educations"> <h3> <span class="add-name">{{education.experience_address.name}}-{{education.experience_content}}</span> <span class="gray edit"><i class="fa fa-pencil" aria-hidden="true"></i> 编辑</span> </h3> <span class="date">{{education.start_time}} - {{education.end_time}}</span> </li>
        <p class="add"><a href="javascript:;">添加教育经历</a></p> 
       </div> 
       <!-- edu form --> 
       <div class="form-show" v-show="is_show_form" style="display: block">
        <form action="" class="sui-form"> 
         <div class="sui-row-fluid"> 
          <div class="span6"> 
           <div class="control-group"> 
            <label class="control-label">院校名称</label>
            <div class="controls"> 
             <input type="text" id="company" class="input-large" placeholder="院校名称" name="company" /> 
            </div> 
           </div> 
           <div class="control-group input-daterange" data-toggle="datepicker"> 
            <label class="control-label">起止时间</label>
            <div class="controls date"> 
             <input type="text" class="input-medium input-date" value="2016-01-01" />
             <span>-</span> 
             <input type="text" class="input-medium input-date" /> 
            </div> 
           </div> 
          </div> 
          <div class="span6"> 
           <div class="control-group"> 
            <label class="control-label">所学专业</label>
            <div class="controls"> 
             <input type="text" id="job" class="input-large" placeholder="如：Java工程师" name="job" /> 
            </div> 
           </div> 
           <div class="control-group"> 
            <label class="control-label">学历</label>
            <div class="controls"> 
             <span class="sui-dropdown dropdown-bordered select"><span class="dropdown-inner"><a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle"> <input value="hz" name="city" type="hidden" /><i class="caret"></i><span>专科</span></a> 
               <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu"> 
                <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="bj">专科</a></li> 
                <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="sb">本科</a></li> 
                <li role="presentation" class="active"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="hz">硕士</a></li> 
               </ul> </span> </span> 
            </div> 
           </div> 
          </div> 
          <div style="clear:both"></div> 
          <div class="control-group"> 
           <label class="control-label">相关技术</label>
           <div class="controls"> 
            <input type="text" placeholder="标签，如:php可使用逗号，分号； 来分隔" class="input-xfat input-xxlarge" id="tags" /> 
           </div> 
          </div> 
          <div class="control-group"> 
           <label class="control-label">取得成就</label>
           <div class="controls"> 
            <textarea rows="3" class="input-block-level" placeholder="在校期间做了什么工作，解决了什么问题，做了什么贡献？"></textarea> 
           </div> 
          </div> 
          <div class="control-group btns"> 
           <button class="sui-btn btn-cancel">取消</button> 
           <button class="sui-btn btn-save">保存</button> 
          </div> 
         </div> 
        </form> 
       </div> 
      </div> 
     </div> 
    </div> 
    <div class="sidebar right"> 
     <h3><span>简历完善度</span></h3> 
     <div class="sui-progress progress-success"> 
      <div style="width: 30%;" class="bar">
       30%
      </div> 
     </div> 
    </div> 
   </div> 
   <div class="clearfix"></div> 
  </div> 
  <div class="footer"> 
   <div class="wrapper"> 
    <div class="footer-bottom"> 
     <div class="link"> 
      <dl> 
       <dt>
        网站相关
       </dt> 
       <dd>
        关于我们
       </dd> 
       <dd>
        服务条款
       </dd> 
       <dd>
        帮助中心
       </dd> 
       <dd>
        编辑器语法
       </dd> 
      </dl> 
      <dl> 
       <dt>
        常用链接
       </dt> 
       <dd>
        传智播客
       </dd> 
       <dd>
        传智论坛
       </dd> 
      </dl> 
      <dl> 
       <dt>
        联系我们
       </dt> 
       <dd>
        联系我们
       </dd> 
       <dd>
        加入我们
       </dd> 
       <dd>
        建议反馈
       </dd> 
      </dl> 
      <dl> 
       <dt>
        关注我们
       </dt> 
       <dd>
        微博
       </dd> 
       <dd>
        twitter
       </dd> 
      </dl> 
      <div class="xuke"> 
       <h3>内容许可</h3> 
       <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p> 
       <p>本站由 传智研究院 提供更新服务</p> 
      </div> 
     </div> 
     <p class="Copyright">Copyright &copy; 2017 传智问答社区 当前版本 0.0.1</p> 
    </div> 
   </div> 
  </div> 
 </div>
 </body>
<script type="text/javascript" src="js/person-myfile.js"></script>
</html>